package com.github.valfirst.jbehave.junit.monitoring;

import org.junit.Ignore;
import org.junit.Test;

/**
 * Class IgnoredTestsTest.
 *
 * The purpose of this class is to see how an IDE behaves when there is a unit test that passes and a test is ignored.
 *
 * The result in IntelliJ 13.1 Community Edition is that there are two lines of info reported about test outcomes:
 * (OK) IgnoredTestsTest
 *      (OK) shouldPass
 *
 * This implies to me that the jbehave-junit-runner should behave similarly that even if there are stories/scenarios
 * that are ignored (via meta tag filtering) then the highest level node should show (OK) and not (Pending).
 */
public class IgnoredTestsTest {

	@Test
	public void shouldPass() {
		// Nothing to do. Wish this test to pass.
	}

	@Ignore
	public void shouldBeIgnored() {
		// Nothing to do. Wish this test to be ignored.
	}
}

@@ -97,16 +97,60 @@
 .Test;%0A%0A
+import static org.junit.Assert.assertTrue;%0A%0A
 /**%0A * C
@@ -806,16 +806,36 @@
 o pass.%0A
+%09%09assertTrue(true);%0A
 %09%7D%0A%0A%09@Ig
@@ -922,13 +922,34 @@
 gnored.%0A
+%09%09assertTrue(false);%0A
 %09%7D%0A%7D%0A

Make IgnoredTestsTest more strict