language-extensions/R/test/src/RExtensionLibraryApiTests.cpp
//----------------------------------------------------------------------------------------------
// Name: NoDescriptionPackageInstallTest
//
// Description:
//  Tries to install a package without DESCRIPTION.
//
NoDescriptionPackageInstallTest
Description:
Tries to install a package without DESCRIPTION.
NoDescriptionPackageInstallTest Description : Tries to install a package without DESCRIPTION .
TEST_F(RExtensionLibraryApiTests, NoDescriptionPackageInstallTest)
	{
		string libName = "assertthatbad";
		string version = "0.2.1";
		string zipFileName =
			sm_PublicDbIdUserIdPrefix + libName + "_" + version + x_FileExtension;
		fs::path pkgPath;
		pkgPath = sm_packagesSourcePath / x_OsName / zipFileName;
		EXPECT_TRUE(fs::exists(pkgPath));
		InstallAndTest(
			libName,
			pkgPath.string(),
			sm_publicLibraryPath,
			version,
			sm_publicLibraryPath,
			false);  successfulInstall
	}
TEST_F ( RExtensionLibraryApiTests , NoDescriptionPackageInstallTest ) { string libName = " " ; string version = " " ; string zipFileName = sm_PublicDbIdUserIdPrefix + libName + " " + version + x_FileExtension ; fs :: path pkgPath ; pkgPath = sm_packagesSourcePath / x_OsName / zipFileName ; EXPECT_TRUE ( fs :: exists ( pkgPath ) ) ; InstallAndTest ( libName , pkgPath . string ( ) , sm_publicLibraryPath , version , sm_publicLibraryPath , false ) ; }
Name: NoDescriptionPackageInstallTest
Description:
Tries to install a package without DESCRIPTION.
Name : NoDescriptionPackageInstallTest Description : Tries to install a package without DESCRIPTION .
// Installation should fail. // // successfulInstall