Skip to content

Commit

Permalink
Don't ignore tests.
Browse files Browse the repository at this point in the history
Instead, expected them to fail.
  • Loading branch information
khatchad committed Jul 22, 2024
1 parent aefcf44 commit 4c5aea5
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.util.logging.Logger;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.junit.Ignore;
import org.junit.Test;

/** Test TF2 APIs. */
Expand Down Expand Up @@ -3042,14 +3041,14 @@ public void testDecoratedMethod() throws ClassHierarchyException, CancelExceptio
test("tf2_test_decorated_method.py", "f", 1, 1, 2);
}

@Ignore("Enable once once https://github.com/wala/ML/issues/188 is fixed.")
@Test
/** Test https://github.com/wala/ML/issues/188. */
@Test(expected = AssertionError.class)
public void testDecoratedMethod2() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_decorated_method2.py", "f", 1, 1, 2);
}

@Ignore("Enable once once https://github.com/wala/ML/issues/190 is fixed.")
@Test
/** Test https://github.com/wala/ML/issues/190. */
@Test(expected = AssertionError.class)
public void testDecoratedMethod3() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_decorated_method3.py", "raffi", 1, 1, 2);
}
Expand Down Expand Up @@ -3079,17 +3078,19 @@ public void testDecoratedMethod8() throws ClassHierarchyException, CancelExcepti
test("tf2_test_decorated_method8.py", "f", 1, 1, 2);
}

/** This decorator isn't defined. Thus, we shouldn't have a CG node for it. */
@Ignore(
"We now require nodes for functions under test. Otherwise, a test could pass even though the"
+ " function doesn't exist.")
@Test
/**
* This decorator isn't defined. Thus, we shouldn't have a CG node for it.
*
* <p>We now require nodes for functions under test. Otherwise, a test could pass even though the
* function doesn't exist.
*/
@Test(expected = AssertionError.class)
public void testDecoratedMethod9() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_decorated_method9.py", "f", 0, 0);
}

@Ignore("Enable once once https://github.com/wala/ML/issues/190 is fixed.")
@Test
/** Test https://github.com/wala/ML/issues/190. */
@Test(expected = AssertionError.class)
public void testDecoratedMethod10() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_decorated_method10.py", "f", 1, 1, 2);
}
Expand All @@ -3105,8 +3106,8 @@ public void testDecoratedMethod12() throws ClassHierarchyException, CancelExcept
test("tf2_test_decorated_method12.py", "f", 0, 0);
}

@Ignore("Enable once once https://github.com/wala/ML/issues/190 is fixed.")
@Test
/** Test https://github.com/wala/ML/issues/190. */
@Test(expected = AssertionError.class)
public void testDecoratedMethod13() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_decorated_method13.py", "f", 1, 1, 2);
}
Expand Down

0 comments on commit 4c5aea5

Please sign in to comment.