ATDD.TestScriptor for ALVSCode extension for Acceptance Test-Driven Development test scriptor aka ATDD.TestScriptor V2 as follow up on ATDD.TestScriptor. The Acceptance Test-Driven Development test scriptor allows the user to define in a managed matter ATDD test scenarios and convert them into an AL code structure to facilate fast test code development. ATDD TagsThe ATDD pattern is defined by so called tags:
FeaturesAt this point in time ATDD.TestScriptor for AL allows you to:
IssuesKnown IssuesAs this is a beta version no specific listing is made for known issues. Have a look at the beta related issues on the GitHub repository. NoteOne known issue, however, makes sense to be noted: multi-project workspaces are not yet fully supported, meaning that some things work well, while others might not. Issue reportingBe more than welcome to report any issue you come accross on our GitHub repository. ContributorsA big thanx to @martonsagi and @davidfeldhoff for their development power. And @stefanmaron for his early stage testing. Requirements overviewA brief historyBased on the original ATDD.TestScriptor conceived by @lvanvugt and build by @jhoek, @martonsagi did build a first UI version which is still the base to the current version. With the help of @davidfeldhoff we started to, bottom up, fill in the various features that will allow you to create a new FEATURE, add SCENARIOs and detail these out with GIVEN, WHEN and THEN tags, and simulataneously generate the .al counterpart. As @martonsagi could already extract from an .al test codeunit the various tags we followed the bottom up order and started with first enabling to add a new GIVEN to an existing test function, i.e. SCENARIO. ScopeThis is the path we have followed so far and defines the scope of the beta release:
Out of scopeThese are the current out of scope use cases:
Next to that exporting to and importing from Excel of ATDD features/scenarios is not yet handled. Opening ATDD.TestScriptorTo open the TestScriptor page type
As a result the TestScriptor page displays each FEATURE/SCENARIO combination as a line enabling you with a hyperlinked scenario name to jump to the related AL test function. In case a test codeunit does not contain a FEATURE tag the FEATURE column in the TestScriptor page remains empty. If no SCENARIO tag has been provided for a test function the test function name will be used. TipTo get the FEATURE column in the TestScriptor page populated add a FEATURE tag the test codeunit. See also Abstracting ATDD information. Basic RulesAbstracting ATDD informationTo be able to abstract ATDD information from a test codeunit the following rules apply.
Converting ATDD informationWhen entering ATDD information in the TestScriptor page the following rules apply.
Removing ATDD informationWhen removing ATDD information ATDD.TestScriptor will ask you in various cases to confirm your changes. You can change this behaviour by means of the
Background and ExamplesIf you are looking for inspiration on ATDD based testing, you might want to consults these resource:
Have fun! |