summaryrefslogtreecommitdiff
path: root/python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-08-20 17:01:23 -0700
committerTor Norbye <tnorbye@google.com>2014-08-20 17:01:23 -0700
commit1aa2e09bdbd413eacb677e9fa4b50630530d0656 (patch)
tree2f4cc6d69645bd460aa253fdecb606d764fbd25d /python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java
parent02cf98d65c798d368fcec43ed64a001d513bdd4f (diff)
downloadidea-1aa2e09bdbd413eacb677e9fa4b50630530d0656.tar.gz
Snapshot idea/138.1696 from git://git.jetbrains.org/idea/community.git
Change-Id: I50c97b83a815ce635e49a38380ba5b8765e4b16a
Diffstat (limited to 'python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java')
-rw-r--r--python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java b/python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java
new file mode 100644
index 000000000000..ab3dee60c5b0
--- /dev/null
+++ b/python/testSrc/com/jetbrains/env/python/testing/PythonPyTestingTest.java
@@ -0,0 +1,33 @@
+package com.jetbrains.env.python.testing;
+
+import com.jetbrains.env.PyEnvTestCase;
+import com.jetbrains.env.ut.PyTestTestTask;
+
+/**
+ * User : catherine
+ */
+public class PythonPyTestingTest extends PyEnvTestCase{
+ public void testPytestRunner() {
+ runPythonTest(new PyTestTestTask("/testRunner/env/pytest", "test1.py") {
+
+ @Override
+ public void after() {
+ assertEquals(3, allTestsCount());
+ assertEquals(3, passedTestsCount());
+ allTestsPassed();
+ }
+ });
+ }
+
+ public void testPytestRunner2() {
+ runPythonTest(new PyTestTestTask("/testRunner/env/pytest", "test2.py") {
+
+ @Override
+ public void after() {
+ assertEquals(8, allTestsCount());
+ assertEquals(5, passedTestsCount());
+ assertEquals(3, failedTestsCount());
+ }
+ });
+ }
+}