简体   繁体   中英

unit testing jsp 2.0 .tag files

How do people test jsp 2.0 tags? The ones that have .tag extensions and are basically jsp files with some extra support for passing parameters.

The way we do this is by making a jsp page as a test fixture and running the asserts through selenium. Hardly a "quick" unit test, but not as inefficient as you could fear.

You want that selenium test-rig up an running anyway, right ? We use it both for some unit-test like fixtures and to run JsUnit tests in a systematic manner.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM