Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load test example in docs does not work #10

Open
renatoathaydes opened this issue Dec 3, 2013 · 3 comments
Open

Load test example in docs does not work #10

renatoathaydes opened this issue Dec 3, 2013 · 3 comments

Comments

@renatoathaydes
Copy link
Contributor

The following page:

http://tempusfugitlibrary.org/documentation/junit/load/

Contains an example which does not work.

   @After
    public void annotatedTestRunsMultipleTimes() {
        assertThat(counter, is(99));
    }

The problem is that in the example, you show the use of the @After method to check the counter, whereas you should have used @AfterClass. Unless you intended for the @repeating annotation to actually run the @After method only once after each @Test method? Then you have a bug in the code, not the doc :) because this is not what happens!

@tobyweston
Copy link
Owner

Good spot; you're right. It looks like that was a typo in the docs as it is supposed to be based on this test case and as you point out, AfterClass.

Thanks, I'll close the issue once I've updated the docs.

@MrDourado
Copy link

Hi. There is a way to fix documentation page? I can help.

@tobyweston
Copy link
Owner

The source for the website is under the ‘site’ folder, feel free to hack about and submit pull requests.

There should be something under the hacking section to describe how to build the site (hint: you’ll need ‘sbt’ setup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants