Examples of CoverException


Examples of org.erlide.cover.api.CoverException

                        .call(CoverConstants.COVER_ERL_BACKEND, CoverConstants.FUN_START,
                                "x", nodesList);

            } catch (final RpcException e) {
                ErlLogger.error(e);
                throw new CoverException(e.getMessage());
            }

        }

    }
View Full Code Here

Examples of org.erlide.cover.api.CoverException

                    .getOtpRpc()
                    .call(CoverConstants.COVER_ERL_BACKEND,
                            CoverConstants.FUN_SET_INCLUDES, "x", includes);
        } catch (final RpcException e1) {
            e1.printStackTrace();
            throw new CoverException(e1);
        }

        recompileModules();
    }
View Full Code Here

Examples of org.erlide.cover.api.CoverException

                .getModules().size());
        for (final IErlModule module : config.getModules()) {
            if (module == null) {
                final String msg = "No such module at given project. Check your configuration";
                CoverBackend.getInstance().handleError(msg);
                throw new CoverException(msg);
            }
            log.info(module.getFilePath());
            paths.add(new OtpErlangList(module.getFilePath()));
        }

        try {
            CoverBackend
                    .getInstance()
                    .getBackend()
                    .getOtpRpc()
                    .call(CoverConstants.COVER_ERL_BACKEND, CoverConstants.FUN_PREP, "x",
                            paths);

        } catch (final RpcException e) {
            ErlLogger.error(e);
            throw new CoverException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.erlide.cover.api.CoverException

                    .call(CoverConstants.COVER_ERL_BACKEND, CoverConstants.FUN_ANALYSE,
                            "x", modules);

        } catch (final RpcException e) {
            ErlLogger.error(e);
            throw new CoverException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.erlide.cover.api.CoverException

        frameworkType = data.getFramework();
        config = new Configuration();

        log = Activator.getDefault();
        if (data.getFramework() == null) {
            throw new CoverException("No test framework set");
        }

        switch (t) {
        case MODULE:

            // new
            config.setProject(data.getProject());
            if (data.getProject() == null || data.getProject().length() == 0) {
                throw new CoverException("No project name set");
            }
            if (data.getModule() == null || data.getModule().length() == 0) {
                throw new CoverException("No module name set");
            }
            try {
                config.addModule(data.getModule().replace(".erl", ""));
            } catch (final ErlModelException e) {
                ErlLogger.error(e);
                throw new CoverException(e.getMessage());
            }
            break;
        case ALL:
            // new
            if (data.getProjectAll() == null || data.getProjectAll().length() == 0) {
                throw new CoverException("No project name set");
            }
            config.setProject(data.getProjectAll());
            try {
                final Collection<IErlModule> allModules = config.getProject()
                        .getModules();
                for (final IErlModule m : allModules) {
                    log.info(m.getFilePath());
                    if (!m.getFilePath().contains("/test/")) {
                        config.addModule(m);
                    }
                }
            } catch (final ErlModelException e) {
                ErlLogger.error(e);
                throw new CoverException(e.getMessage());
            }
            break;

        case CUSTOM:
            break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.