Permalink
Commits on Aug 7, 2017
  1. deprecate RuleChain

    panchenko authored and kcooney committed May 25, 2017
    Closes #1445
Commits on Jul 29, 2017
Commits on Jun 23, 2017
  1. Provide helpful message if parameter cannot be set.

    stefanbirkner committed Jun 13, 2017
    For private @Parameter fields is users get an exception like
    "java.lang.IllegalAccessException: Class ... can not access a member
    of class X with modifiers private" The new message "Cannot set
    parameter 'parameter'. Ensure that the the field 'parameter' is
    public." tells the user what they should do.
    
    The reason for adding this feature is the Stackoverflow question
    https://stackoverflow.com/questions/44522046/reflection-exception-in-parameterized-junit-test-using-array-parameter/44522988
Commits on Jun 14, 2017
Commits on Jun 13, 2017
Commits on Jun 8, 2017
Commits on May 26, 2017
Commits on May 25, 2017
  1. Avoid unnecessary call to ParentRunner.createTestClass() for tests no…

    kcooney committed May 5, 2017
    …t annotated with @RunWith.
  2. Update Theories to pass the TestClass to BlockJUnit4ClassRunner.

    kcooney committed May 5, 2017
    This avoids repeated class scanning.
  3. Reuse `TestClass` for parameterized tests.

    kcooney committed May 5, 2017
    The `BlockJUnit4ClassRunnerWithParameters` created a new instance of
    `TestClass` for each parameter set. This led to repeated class
    scanning and noticeable memory allocation. Reusing the `TestClass`
    avoids theses side effects.
    
    Fixes #1046.
  4. Remove fast-tests maven target.

    svzdvd authored and kcooney committed May 25, 2017
    Many of our tests store data in static fields, so the tests cannot be run in parallel.
    
    Fixes #1297
Commits on May 19, 2017
Commits on May 6, 2017
Commits on May 5, 2017
  1. Replace uses of synchronized(something) with ReentrantLock. (#1343)

    kcooney committed May 5, 2017
    In almost all cases, this is more efficent, especially if there is any
    contention on the locks.
Commits on Apr 21, 2017
Commits on Apr 17, 2017
Commits on Mar 7, 2017
  1. Fix TemporaryFolderUsageTest on Windows (#1428)

    powazny authored and kcooney committed Mar 7, 2017
    Fix newFolderWithPathStartingWithFileSeparatorThrowsIOException Test run on Windows OS
Commits on Mar 2, 2017
  1. Refactor BlockJUnit4ClassRunner.possiblyExpectingExceptions

    alb-i986 authored and marcphilipp committed Apr 25, 2016
    Extract to local variable the result of getExpectedException(), thus saving one extra call.
Commits on Feb 27, 2017
  1. ExternalResource: declare after() to throw Throwable (#1421)

    alb-i986 authored and kcooney committed Feb 27, 2017
    This allows clients to call methods that throw checked exceptions without having to catch and wrap checked exceptions.
Commits on Feb 25, 2017
  1. remove an an extra word

    grimreaper authored and marcphilipp committed Feb 25, 2017
Commits on Feb 14, 2017
  1. Tests expecting AssumptionViolatedException should be marked as passe…

    alb-i986 authored and kcooney committed Feb 14, 2017
    …d, not skipped (#1291)
    
    Tests annotated with `@Test(expected = AssumptionViolatedException.class)`
    which throw AssumptionViolatedException should be marked as passing, not skipped.
    
    Fixes #1290
  2. Classes annotated with @RunWith(Suite.class) do not need to be public. (

    kcooney committed Feb 14, 2017
    #1408)
    
    This fixes a regression in JUnit 4.12 introduced by
    junit-team@1d97da7.
Commits on Feb 12, 2017
  1. Fix FrameworkMember so fields never shadow other fields.

    kcooney committed Jan 23, 2017
    Previously, if a class had a @Rule field  with the same name as a @Rule field in
    a superclass, the field was ignored. The same would happen for @ClassRule
    fields. With this commit, the static fields on the class are applied as rules.
    
    Closes #1414
  2. Fix FrameworkMember so static methods do not shadow other methods.

    kcooney committed Jan 18, 2017
    Previously, if a class had a @ClassRule method with the same name as a
    @ClassRule method a superclass, the method was ignored. The same would happen
    for @BeforeClass methods and @AfterClass methods. With this commit, the
    static methods on the class are called.
Commits on Feb 6, 2017
  1. Trim stack trace. (#1028)

    kcooney committed Feb 6, 2017
    Update TextListener to trim stack traces.
    
    Fixes #669
Commits on Jan 23, 2017
  1. Fix link to up-for-grab issues

    kcooney committed Jan 23, 2017
    We renamed the "lowhanging" tag to "up-for-grabs" (to match the tag in the JUnit5 repository). This change updates the links to use the new tag.
Commits on Jan 22, 2017
Commits on Jan 20, 2017
Commits on Jan 18, 2017