File tree Expand file tree Collapse file tree 5 files changed +36
-10
lines changed Expand file tree Collapse file tree 5 files changed +36
-10
lines changed Original file line number Diff line number Diff line change 1+ ## 3.1.2
2+
3+ 🛩️ Features:
4+
5+ * Added ` coverage ` plugin to generate code coverage for Playwright & Puppeteer. By @anirudh-modi
6+ * Added ` subtitle ` plugin to generate subtitles for videos recorded with Playwright. By @anirudh-modi
7+ * Configuration: ` config.tests ` to accept array of file patterns. See #2994 by @monsteramba
8+
9+ ``` js
10+ exports .config = {
11+ tests: [' ./*_test.js' ,' ./sampleTest.js' ],
12+ // ...
13+ }
14+ ```
15+ * Notification is shown for test files without ` Feature() ` . See #3011 by @PeterNgTr
16+
17+ 🐛 Bugfixes:
18+
19+ * [ Playwright] Fixed #2986 error is thrown when deleting a missing video. Fix by @hatufacci
20+ * Fixed false positive result when invalid function is called in a helper. See #2997 by @abhimanyupandian
21+ * [ Appium] Removed full page mode for ` saveScreenshot ` . See #3002 by @nlespiaucq
22+ * [ Playwright] Fixed #3003 saving trace for a test with a long name. Fix by @hatufacci
23+
24+ 🎱 Other:
25+
26+ * Deprecated ` puppeteerCoverage ` plugin in favor of ` coverage ` plugin.
27+
128## 3.1.1
229
330* [ Appium] Fixed #2759
Original file line number Diff line number Diff line change @@ -130,16 +130,16 @@ class Codecept {
130130 let patterns = [ pattern ] ;
131131 if ( ! pattern ) {
132132 patterns = [ ] ;
133-
133+
134134 // If the user wants to test a specific set of test files as an array or string.
135- if ( this . config . tests && ! this . opts . features ) {
136- if ( Array . isArray ( this . config . tests ) ) {
135+ if ( this . config . tests && ! this . opts . features ) {
136+ if ( Array . isArray ( this . config . tests ) ) {
137137 patterns . push ( ...this . config . tests ) ;
138- } else {
138+ } else {
139139 patterns . push ( this . config . tests ) ;
140140 }
141141 }
142-
142+
143143 if ( this . config . gherkin . features && ! this . opts . tests ) {
144144 if ( Array . isArray ( this . config . gherkin . features ) ) {
145145 this . config . gherkin . features . forEach ( feature => {
@@ -156,7 +156,7 @@ class Codecept {
156156 if ( ! fsPath . isAbsolute ( file ) ) {
157157 file = fsPath . join ( global . codecept_dir , file ) ;
158158 }
159- if ( ! this . testFiles . includes ( fsPath . resolve ( file ) ) ) {
159+ if ( ! this . testFiles . includes ( fsPath . resolve ( file ) ) ) {
160160 this . testFiles . push ( fsPath . resolve ( file ) ) ;
161161 }
162162 } ) ;
Original file line number Diff line number Diff line change @@ -56,10 +56,9 @@ class MochaFactory {
5656 }
5757 seenTests . push ( test . id ) ;
5858
59- if ( name . slice ( 0 , name . indexOf ( ':' ) ) === "" ) {
59+ if ( name . slice ( 0 , name . indexOf ( ':' ) ) === '' ) {
6060 missingFeatureInFile . push ( test . file ) ;
6161 }
62-
6362 } ) ;
6463 if ( dupes . length ) {
6564 // ideally this should be no-op and throw (breaking change)...
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ class MetaStep extends Step {
223223 this . endTime = Date . now ( ) ;
224224 event . dispatcher . removeListener ( event . step . before , registerStep ) ;
225225 }
226- if ( rethrownError ) { throw rethrownError ; }
226+ if ( rethrownError ) { throw rethrownError ; }
227227 return result ;
228228 }
229229}
Original file line number Diff line number Diff line change 11{
22 "name" : " codeceptjs" ,
3- "version" : " 3.1.1 " ,
3+ "version" : " 3.1.2 " ,
44 "description" : " Supercharged End 2 End Testing Framework for NodeJS" ,
55 "keywords" : [
66 " acceptance" ,
You can’t perform that action at this time.
0 commit comments