MasoniteFramework / masonite4

Temporary Repository for a Masonite Rewrite for Masonite 4
14 stars 3 forks source link

Add back test case assertions and craft test command #193

Closed girardinsamuel closed 3 years ago

girardinsamuel commented 3 years ago

Fixes #192 Fixes https://github.com/MasoniteFramework/masonite/issues/456 This PR adds back:

python craft test MyAppTest will create:

from masonite.tests import TestCase

class MyAppTest(TestCase):

    def setUp(self):
        super().setUp()

    def test_something(self):
        self.assertTrue(True)

in tests/unit/test_my_app.py

Directory can be changed with python craft test MyFeatureTest --directory tests/features