Skip to content

Conversation

@ChristophWurst
Copy link
Member

Although only a few lines have changes, I expect this PR to have a huge effect on code coverage. Since the module mail can be seen as the root of all js modules, we basically load all modules the application uses. Therefore, the js code coverage should finally show the real percentage of tested code.

We can later extend this test case to have a full integration test of the app start. Currently I mocked the initialization code and discarded the emitted events to keep things simple.

cc @Gomez @nextcloud/mail

@ChristophWurst ChristophWurst added this to the 0.6.1 milestone Sep 27, 2016
@ChristophWurst ChristophWurst changed the title Test 'app' module to load all modules for corret code coverage Test 'app' module to load all modules for correct code coverage Sep 27, 2016
out: '../js/mail.min.js',
insertRequire: [
'app',
'notification'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @skjnldsv: I fixed another occurrence of that bloody module. I knew it was loaded twice, but I couldn't find it when I fix the other one…

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God dammit! You again Mr notification! I was expecting you!

js/init.js Outdated

$(function() {
// Start app when the page is ready
console.log('starting Mail…');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before someone nitpicks this as debug code – I've added in on purpose because it could be handy to debug js errors in the future if someone reports a weird client error. We'd then know whether the app tried to start or not.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpickingly corrected the writing style to »Starting Mail …« ;D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really? ;-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahahahah

@ChristophWurst
Copy link
Member Author

ChristophWurst commented Sep 27, 2016

Hm. Now coverage reports 28 instead of 15 files… Not sure if we actually caught all modules 🤔

Still, it's an improvement…

@ChristophWurst
Copy link
Member Author

@jancborchardt @skjnldsv any issues detected? Can we merge this PR?

@skjnldsv
Copy link
Member

Let me check a moment.

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChristophWurst LGTM 👍

@jancborchardt
Copy link
Member

Looks all good 👍

@jancborchardt jancborchardt merged commit 6177fda into master Sep 28, 2016
@jancborchardt jancborchardt deleted the test-app-start branch September 28, 2016 14:07
@jancborchardt
Copy link
Member

I guess coveralls decreasing is separte

@skjnldsv
Copy link
Member

Haaaan, @ChristophWurst is doing all the hard work and you get the pleasure to merge! :O

@jancborchardt
Copy link
Member

@skjnldsv :DD you can also press the button if you like. ;) It only seems that the plugin doesn’t register 👍 when it was written inside of a review comment (which is good I guess).

@lock
Copy link

lock bot commented Nov 21, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and questions.

@lock lock bot locked and limited conversation to collaborators Nov 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants